using Admin.Domain.Events;
using Admin.Domain.IEvents;

namespace Admin.Infrastructure.Events;
public class UserCreatedEventHandler : IEventHandler<UserCreatedEvent>
{
    public async Task Handle(UserCreatedEvent domainEvent)
    {
        Console.WriteLine($"用户创建：{domainEvent.UserName}");
        await Task.CompletedTask;
    }
}